package org.dromara.lsc.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.lsc.domain.TrainConfigLsc;

/**
 * 【请填写功能名称】业务对象 train_config_lsc
 *
 * @author Lion Li
 * @date 2023-12-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TrainConfigLsc.class, reverseConvertGenerate = false)
public class TrainConfigLscBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 训练策略id
     */
    @NotNull(message = "训练策略id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long stragyId;

    /**
     * 训练迭代次数
     */
    @NotNull(message = "训练迭代次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long epochs;

    /**
     * 优化器
     */
    @NotNull(message = "优化器不能为空", groups = { AddGroup.class, EditGroup.class })
    private String optimizer;

    /**
     * 学习率
     */
    @NotBlank(message = "学习率不能为空", groups = { AddGroup.class, EditGroup.class })
    private String learningRate;

    /**
     * 批量大小
     */
    @NotNull(message = "批量大小不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long batchSize;

    /**
     * 损失函数
     */
    @NotNull(message = "损失函数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lossFunc;

    /**
     * 学习率衰减
     */
    private String lrDegrade;

    /**
     * 学习率衰减
     */
    private Long zthCross;

}
